package models;

import javax.persistence.Entity;
import javax.persistence.Id;

import play.data.validation.Constraints.Pattern;
import play.data.validation.Constraints.Required;
import play.db.ebean.Model;

@Entity
public class Phone  extends Model{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8114998250264779389L;

	@Id
	public Long id;

	@Required
	@Pattern(value = "[0-9.+]+", message = "A valid phone number is required")
	public String number;

	public Phone() {
	}

	public Phone(String number) {
		this.number = number;
	}
}
